package com.tlxch.server.teacher.impl;

import com.tlxch.mapper.SGradesMapper;
import com.tlxch.pojo.SGrades;
import com.tlxch.server.teacher.TSgradesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TSgradesServiceImpl implements TSgradesService {
    @Autowired
    SGradesMapper sGradesMapper;

    public void addstuGrades(SGrades sGrades) {
        sGradesMapper.insert(sGrades);
    }

    public List<SGrades> getBystuId(String sgSid) {
        return sGradesMapper.getBystuId(sgSid);
    }
}
